package com.llh.bean;

import java.io.Serializable;
import java.util.Date;

public class TradeLog implements Serializable {
    private Long no;

    private String trade_code;

    private String req_json;

    private String resp_json;

    private Date time;

    private Integer retry;

    private String retry_result;

    private String reason;

    private Date insert_time;

    private static final long serialVersionUID = 1L;

    public Long getNo() {
        return no;
    }

    public void setNo(Long no) {
        this.no = no;
    }

    public String getTrade_code() {
        return trade_code;
    }

    public void setTrade_code(String trade_code) {
        this.trade_code = trade_code == null ? null : trade_code.trim();
    }

    public String getReq_json() {
        return req_json;
    }

    public void setReq_json(String req_json) {
        this.req_json = req_json == null ? null : req_json.trim();
    }

    public String getResp_json() {
        return resp_json;
    }

    public void setResp_json(String resp_json) {
        this.resp_json = resp_json == null ? null : resp_json.trim();
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public Integer getRetry() {
        return retry;
    }

    public void setRetry(Integer retry) {
        this.retry = retry;
    }

    public String getRetry_result() {
        return retry_result;
    }

    public void setRetry_result(String retry_result) {
        this.retry_result = retry_result == null ? null : retry_result.trim();
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason == null ? null : reason.trim();
    }

    public Date getInsert_time() {
        return insert_time;
    }

    public void setInsert_time(Date insert_time) {
        this.insert_time = insert_time;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        TradeLog other = (TradeLog) that;
        return (this.getNo() == null ? other.getNo() == null : this.getNo().equals(other.getNo()))
            && (this.getTrade_code() == null ? other.getTrade_code() == null : this.getTrade_code().equals(other.getTrade_code()))
            && (this.getReq_json() == null ? other.getReq_json() == null : this.getReq_json().equals(other.getReq_json()))
            && (this.getResp_json() == null ? other.getResp_json() == null : this.getResp_json().equals(other.getResp_json()))
            && (this.getTime() == null ? other.getTime() == null : this.getTime().equals(other.getTime()))
            && (this.getRetry() == null ? other.getRetry() == null : this.getRetry().equals(other.getRetry()))
            && (this.getRetry_result() == null ? other.getRetry_result() == null : this.getRetry_result().equals(other.getRetry_result()))
            && (this.getReason() == null ? other.getReason() == null : this.getReason().equals(other.getReason()))
            && (this.getInsert_time() == null ? other.getInsert_time() == null : this.getInsert_time().equals(other.getInsert_time()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getNo() == null) ? 0 : getNo().hashCode());
        result = prime * result + ((getTrade_code() == null) ? 0 : getTrade_code().hashCode());
        result = prime * result + ((getReq_json() == null) ? 0 : getReq_json().hashCode());
        result = prime * result + ((getResp_json() == null) ? 0 : getResp_json().hashCode());
        result = prime * result + ((getTime() == null) ? 0 : getTime().hashCode());
        result = prime * result + ((getRetry() == null) ? 0 : getRetry().hashCode());
        result = prime * result + ((getRetry_result() == null) ? 0 : getRetry_result().hashCode());
        result = prime * result + ((getReason() == null) ? 0 : getReason().hashCode());
        result = prime * result + ((getInsert_time() == null) ? 0 : getInsert_time().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", no=").append(no);
        sb.append(", trade_code=").append(trade_code);
        sb.append(", req_json=").append(req_json);
        sb.append(", resp_json=").append(resp_json);
        sb.append(", time=").append(time);
        sb.append(", retry=").append(retry);
        sb.append(", retry_result=").append(retry_result);
        sb.append(", reason=").append(reason);
        sb.append(", insert_time=").append(insert_time);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}